package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 智能机器人问题答案库
 *
 * @author code-generate
 * @date 2022-01-05
 */
@Data
@DbTable(tableName = "t_robot")
public class Robot extends BaseEntity {
        /**
     * 问题
     */
    @DbTableField(columnName = "c_problem", dbType = DbTypeEnum.VARCHAR)
    public String problem ;

    /**
     * 答案
     */
    @DbTableField(columnName = "c_answer", dbType = DbTypeEnum.VARCHAR)
    public String answer ;

    /**
     * 类别
     */
    @DbTableField(columnName = "c_type", dbType = DbTypeEnum.VARCHAR)
    public String type ;

    /**
     * 关键词
     */
    @DbTableField(columnName = "c_key_word", dbType = DbTypeEnum.VARCHAR)
    public String keyWord ;

    /**
     * 创建时间
     */
    @DbTableField(columnName = "c_db_create_time", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime dbCreateTime ;

    /**
     * 修改人
     */
    @DbTableField(columnName = "c_db_update_id", dbType = DbTypeEnum.INTEGER)
    public Integer dbUpdateId ;

    /**
     * 修改时间
     */
    @DbTableField(columnName = "c_db_update_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime dbUpdateDate ;


}
